package com.medusa.aps.business.modules.demand.mp.entity;

import com.medusa.aps.business.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.Set;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "计划运算记录表")
@EqualsAndHashCode(callSuper = true)
public class PlanOperationProgress extends BaseEntity<PlanOperationProgress> {
    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;
    /**
     * 百分比
     */
    @Schema(description = "百分比(0-100)")
    private BigDecimal rate;
    /**
     * 状态
     */
    @Schema(description = "状态(1.成功,2.失败 3.待确认)")
    private Integer status;

    @Schema(description = "排程订单号集合")
    private Set<String> orderIds;

    @Schema(description = "失败原因")
    private String failureReason;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String creator;
}
